﻿using System;
using System.Collections.Generic;
using System.Text;

namespace CacheAttribute.Attributes
{


    [AttributeUsage(validOn: AttributeTargets.Method, AllowMultiple = true, Inherited = true)]
    public class CacheAbleAttribute : Attribute
    {
        public string preffix { get; }

        public string Totoal_Name { get; }

        public bool work {get;}

        public int Expire;

        public CacheAbleAttribute(string preffix, bool work, string totoal_Name, int expire = 1800)
        {
            this.preffix = preffix;
            Totoal_Name = totoal_Name;
            this.work = work;
            Expire = expire;
        }
    }
}
